package com.groupbuying.orderconsumer.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * 够样优店单订单表
 *
 * @author vincentxin
 * @email vincentxin@aliyun.com
 * @date 2019-05-21 10:30:04
 * @des
 */
public class OrderUshopDO implements Serializable {
    private static final long serialVersionUID = 1L;


    /**
     * 订单编号
     */
    private String orderId;

    /**
     * 删除标记:未删除-UNDEL-1,删除-DEL-0
     */
    private String isDelete;

    /**
     * 创建时间
     */
    private Date gmtCreate;

    /**
     * 更新时间
     */
    private Date gmtModified;

    /**
     * 用户id
     */
    private String customerId;

    /**
     * 收银台id
     */
    private String counterId;

    /**
     * 交易状态:进行中-UNCLOSED-0,交易关闭-CLOSED-1,冻结交易-FREEZE-2
     */
    private String dealState;

    /**
     * 订单状态:未支付-UNPAY-0,已支付-PAY-1,退款中-REFUNDING-2,已退款-REFUNDED-3,退款失败-REFUNDFAIL-4
     */
    private String orderState;

    /**
     * 订单金额
     */
    private BigDecimal orderPrice;

    /**
     * 商户优惠规则
     */
    private String opxRuleId;

    /**
     * 订单关闭时间
     */
    private Date closedTime;

    /**
     * 交易状态备注:超时未支付关闭-TIMEOUT-1,退款完成关闭-RETURN-2,买家取消订单关闭-CANCEL-3,订单完成关闭-FINISH-4
     */
    private String stateNote;

    /**
     * 设置：订单编号
     */
    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    /**
     * 获取：订单编号
     */
    public String getOrderId() {
        return orderId;
    }

    /**
     * 设置：删除标记:未删除-UNDEL-1,删除-DEL-0
     */
    public void setIsDelete(String isDelete) {
        this.isDelete = isDelete;
    }

    /**
     * 获取：删除标记:未删除-UNDEL-1,删除-DEL-0
     */
    public String getIsDelete() {
        return isDelete;
    }

    /**
     * 设置：创建时间
     */
    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    /**
     * 获取：创建时间
     */
    public Date getGmtCreate() {
        return gmtCreate;
    }

    /**
     * 设置：更新时间
     */
    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    /**
     * 获取：更新时间
     */
    public Date getGmtModified() {
        return gmtModified;
    }

    /**
     * 设置：用户id
     */
    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    /**
     * 获取：用户id
     */
    public String getCustomerId() {
        return customerId;
    }

    /**
     * 设置：收银台id
     */
    public void setCounterId(String counterId) {
        this.counterId = counterId;
    }

    /**
     * 获取：收银台id
     */
    public String getCounterId() {
        return counterId;
    }

    /**
     * 设置：交易状态:进行中-UNCLOSED-0,交易关闭-CLOSED-1,冻结交易-FREEZE-2
     */
    public void setDealState(String dealState) {
        this.dealState = dealState;
    }

    /**
     * 获取：交易状态:进行中-UNCLOSED-0,交易关闭-CLOSED-1,冻结交易-FREEZE-2
     */
    public String getDealState() {
        return dealState;
    }

    /**
     * 设置：订单状态:未支付-UNPAY-0,已支付-PAY-1,退款中-REFUNDING-2,已退款-REFUNDED-3,退款失败-REFUNDFAIL-4
     */
    public void setOrderState(String orderState) {
        this.orderState = orderState;
    }

    /**
     * 获取：订单状态:未支付-UNPAY-0,已支付-PAY-1,退款中-REFUNDING-2,已退款-REFUNDED-3,退款失败-REFUNDFAIL-4
     */
    public String getOrderState() {
        return orderState;
    }

    /**
     * 设置：订单金额
     */
    public void setOrderPrice(BigDecimal orderPrice) {
        this.orderPrice = orderPrice;
    }

    /**
     * 获取：订单金额
     */
    public BigDecimal getOrderPrice() {
        return orderPrice;
    }

    /**
     * 设置：商户优惠规则
     */
    public void setOpxRuleId(String opxRuleId) {
        this.opxRuleId = opxRuleId;
    }

    /**
     * 获取：商户优惠规则
     */
    public String getOpxRuleId() {
        return opxRuleId;
    }

    /**
     * 设置：订单关闭时间
     */
    public void setClosedTime(Date closedTime) {
        this.closedTime = closedTime;
    }

    /**
     * 获取：订单关闭时间
     */
    public Date getClosedTime() {
        return closedTime;
    }

    /**
     * 设置：交易状态备注:超时未支付关闭-TIMEOUT-1,退款完成关闭-RETURN-2,买家取消订单关闭-CANCEL-3,订单完成关闭-FINISH-4
     */
    public void setStateNote(String stateNote) {
        this.stateNote = stateNote;
    }

    /**
     * 获取：交易状态备注:超时未支付关闭-TIMEOUT-1,退款完成关闭-RETURN-2,买家取消订单关闭-CANCEL-3,订单完成关闭-FINISH-4
     */
    public String getStateNote() {
        return stateNote;
    }

    @Override
    public String toString() {
        return "OrderUshopDO{" +
                "orderId=" + orderId +
                ",isDelete=" + isDelete +
                ",gmtCreate=" + gmtCreate +
                ",gmtModified=" + gmtModified +
                ",customerId=" + customerId +
                ",counterId=" + counterId +
                ",dealState=" + dealState +
                ",orderState=" + orderState +
                ",orderPrice=" + orderPrice +
                ",opxRuleId=" + opxRuleId +
                ",closedTime=" + closedTime +
                ",stateNote=" + stateNote +
                "}";
    }
}
